package yns.springboot.guide.demo.configure;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

//读取指定组下面的配置
@Component
@ConfigurationProperties(prefix="dev")
public class Configure2 {

	private String name;
	private String pwd;
	private String db;
	
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPwd() {
		return pwd;
	}
	public void setPwd(String pwd) {
		this.pwd = pwd;
	}
	public String getDb() {
		return db;
	}
	public void setDb(String db) {
		this.db = db;
	}

	
}
